{if (count($pages) + count($firstpages) + count($lastpages)) gt 1}
	<a href="{$prevUrl}" class="prvnext">&laquo; poprzednia</a> 
	{foreach from=$firstpages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	{if count($pages) gt 0 && count($firstpages) gt 0}...{/if}
	{foreach from=$pages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	{if count($lastpages) gt 0 && count($pages) gt 0}...{/if}
	{foreach from=$lastpages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	<a class="prvnext" href="{$nextUrl}">następna &raquo;</a>
{/if}
